import { BooksSaga, SearchSaga, IncreasePvSaga } from './beforepage.saga';
import { IsexistsDirname, getUploadToken } from './books.saga';

const Sagas = [
	require('./login.saga').default,
	require('./books.saga').default,
	require('./types.saga').default,
	require('./add.types.saga').default,
	require('./update.types.saga').default,
	require('./remove.types.saga').default,
	require('./users.saga').default,
	require('./remove.users.saga').default,
	require('./add.users.saga').default,
	require('./repswd.saga').default,
	require('./add.books.saga').default,
	require('./remove.books.saga').default,
	BooksSaga,
	SearchSaga,
	IncreasePvSaga,
	IsexistsDirname,
	getUploadToken
];

export default function runSagas() {
	for(let i=0; i<Sagas.length; i++) {
		this.run(Sagas[i]);
	}
}